import java.awt.BorderLayout;

import javax.swing.JComponent;
import javax.swing.JPanel;
import javax.swing.JFrame;
import javax.swing.JTabbedPane;
import java.awt.Rectangle;

public class Tab extends JFrame {

	private static final long serialVersionUID = 1L;
	private JPanel jContentPane = null;
	private JTabbedPane tabPanel = null;

	/**
	 * This is the default constructor
	 */
	public Tab() {
		super();
		initialize();
	}

	/**
	 * This method initializes this
	 * 
	 * @return void
	 */
	private void initialize() {
		this.setSize(300, 200);
		this.setContentPane(getJContentPane());
		this.setTitle("JFrame");
	}

	/**
	 * This method initializes jContentPane
	 * 
	 * @return javax.swing.JPanel
	 */
	private JPanel getJContentPane() {
		if (jContentPane == null) {
			jContentPane = new JPanel();
			jContentPane.setLayout(null);
			jContentPane.add(getTabPanel(), null);
		}
		return jContentPane;
	}

	/**
	 * This method initializes tabPanel	
	 * 	
	 * @return javax.swing.JTabbedPane	
	 */
	private JTabbedPane getTabPanel() {
		if (tabPanel == null) {
			tabPanel = new JTabbedPane();
			tabPanel.setBounds(new Rectangle(0, 0, 288, 173));
			JComponent jcomp = new JPanel(false);
			tabPanel.setLayout(null);
			tabPanel.addTab("Prueba", jcomp);
		}
		return tabPanel;
	}
	
	
	public static void main(String[] args){
		Tab p = new Tab();
		p.setSize(300,300);
		p.setVisible(true);
		
	}
	

}
